<?php
/**
 * Pertyler DatabaseManagement
 * DatabaseModel
 * Row Abstract Class
 *
 * @author	Emre Hasegeli <hasegeli@gmail.com>
 * @license	GNU General Public License v3
 */

namespace Pertyler;

abstract class aChangeLog
{
	private $time;

	private $privilegeTypeId;

	private $moderatorName;

	protected function __Construct(\DateTime $time,
			$privilegeTypeId,
			$moderatorName)
	{
		$this->time = $time;

		$this->privilegeTypeId = $privilegeTypeId;

		$this->moderatorName = $moderatorName;
	}

	public function Time()
	{
		return $this->time;
	}

	public function SelectPrivilegeType()
	{
		require_once __DIR__ . '/PrivilegeType.php';

		return PrivilegeType::Select($this->privilegeTypeId);
	}

	public function ModeratorName()
	{
		return $this->moderatorName;
	}
}
